use rbatis::rbatis::RBatis;
use rbdc_pg::PgDriver;

pub fn init_db() -> RBatis {
    let rb = RBatis::new();
    let url = std::env::var("DATABASE_URL").unwrap();
    rb.init(PgDriver{}, &url);
    rb
}